{extend name="common/base" /}
{block name="body"}
<div class="zuce-mains">
    <div class="zuce-list zuce-list2">
        <div class="list-input">
            <input type="password" class="iput1 input2 js-password" placeholder="请输入6-12位密码，字母或数字">
        </div>                              
    </div>
    <div class="zc-button js-sub">确认</div>
</div>
{/block}
{block name="menu"}{/block}
{block name="script"}
<script type="text/javascript">
    $(function () {
        $('.js-sub').on('click', function () {
            var password = $('.js-password').val();
            if (!password) {
                mui.alert('请输入密码');
                return false;
            }
            $.post("{:url('Pub/setpassword')}", {password: password, step: 2}, function (res) {
                if (res.code == '1') {
                    setTimeout(function () {
                        location.href = res.url;
                    }, 2000);
                }
                mui.toast(res.msg);
                
            }, 'json');

        });
    });
</script>
{/block}